package com.ziJing.multithreading.jvm.classLoader;

import sun.awt.HKSCS;
import sun.net.spi.nameservice.dns.DNSNameService;

/**
 * @program Multithreading
 * @description:
 * @author: zhangbo
 * @create: 2022/05/15 00:47
 */
public class T05_ClassLoaderLevel {

    public static void main(String[] args) {
        //被哪个clasloader 到内存的？
        System.out.println(String.class.getClassLoader());
        System.out.println(HKSCS.class.getClassLoader());
        System.out.println(DNSNameService.class.getClassLoader());
        System.out.println(T05_ClassLoaderLevel.class.getClassLoader());

        System.out.println(DNSNameService.class.getClassLoader().getClass().getClassLoader());
        System.out.println(T05_ClassLoaderLevel.class.getClassLoader().getClass().getClassLoader());
    }
}
